<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.io.*,java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/WEB-INF/jsp/commons/common_js.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新的登录页面</title>
</head>
<body>
   <form id="myform" method="post">
       用户名:<input type="text" name="username" id="username">
      密码：<input type="text" name="password" id="password"/>
      <input type="button" value="提交" onclick="mySubmit()"/>
   </form>
</body>
<script type="text/javascript">
	function mySubmit(){
		   //alert('ok');
		   $.ajax({
			   url:'${baseurl}subLogin',
			   method:'post',
			   datatype:'json',
			   data:{
				     username:$('#username').val(),
				     password:$('#password').val(),
				     },
			   success:function(data){
				   
			   }
		   }); 
	}
   $(document).ready(function(){

   });
</script>
</html>